<template>
  <div>
    <div v-for="item in this.List" :key="item.id">
      <div class="detailList border-bottom">
        <span class="icon-img"></span>
        {{item.title}}
      </div>
      <div v-if="item.children" class="item-children">
        <detail-list :List="item.children"></detail-list>
      </div>
      <div v-if="item.children" class="item-children">
        <detail-list :List="item.children"></detail-list>
      </div>
      <div v-if="item.children" class="item-children">
        <detail-list :List="item.children"></detail-list>
      </div>
    </div>

  </div>
</template>
<script>
export default {
  name: 'detailList',
  props: {
    List: Array
  }
}
</script>
<style lang="stylus" scoped>
  .detailList
    z-index: 4
    padding: 0 .2rem
    height: .88rem
    background: #fff
    color: #333
    font-size: .32rem
    line-height: .88rem
    text-indent: .4rem
    .icon-img
      position: absolute
      left: .2rem
      top: .2rem
      display: inline-block
      width: .36rem
      height: .36rem
      background: url(http://s.qunarzz.com/piao/image/touch/sight/detail.png) 0 -.45rem no-repeat
      margin-right: .1rem
      background-size: .4rem 3rem
  .item-children
    padding: 0 .2rem
</style>
